import request from '@/utils/request'

// 查询利率曲线剥离
export function getIrCrvStripList(query) {
  return request({
    url: '/marketdata/irCurveStrip/queryIrCurveRatesListByPage.action',
    method: 'get',
    params: query
  })
}
// 新增利率曲线剥离
export function addIrcCurveStrip(data) {
  return request({
    url: '/marketdata/irCurveStrip/insertIrCurveRates.action',
    method: 'post',
    params: data
  })
}

// 修改利率曲线剥离
export function uptIrcCurveStrip(data) {
  return request({
    url: '/marketdata/irCurveStrip/updateIrCurveRates.action',
    method: 'post',
    params: data
  })
}

// 删除利率曲线剥离
export function delIrcCurveStrip(data) {
  return request({
    url: '/marketdata/irCurveStrip/deleteIrCurveRates.action',
    method: 'put',
    params: data
  })
}

// 查询利率曲线是否存在
export function getByIrcCode(data) {
  return request({
    url: '/marketdata/irCurveStrip/getByIrcCode.action',
    method: 'get',
    params: data
  })
}

// 查询利率曲线图形数据
export function getIrCrvStripChartData(query) {
  return request({
    url: '/marketdata/irCurveStrip/queryIrCurveRatesByPage.action',
    method: 'get',
    params: query
  })
}

//添加利率
export function addIrCurveRates(form) {
  return request({
    url: '/marketdata/irCurveStrip/addIrCurveRatesDTO.action',
    method: 'post',
    data: form
  })
}

// 查询利率曲线下拉
export function getCurveList() {
  return request({
    url: '/pricing/comboBox/queryIrcurveFilter.action',
    method: 'get',
    params: {}
  })
}

